package com.coolxi.dao;

import com.coolxi.entity.Flower;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerMapper {
    int deleteByPrimaryKey(Integer flowerId);

    int insert(Flower record);

    int insertSelective(Flower record);

    Flower selectByPrimaryKey(Integer flowerId);

    int updateByPrimaryKeySelective(Flower record);

    int updateByPrimaryKey(Flower record);

    Integer selectFlowerCount();

    List<Flower> selectFlowers(@Param("offset") Integer offset,
                               @Param("flowerSize") Integer flowerSize);
}